package com.gurun.model.bean.home;

import com.gurun.model.bean.ApiResult;

import java.util.List;

public class GetTaskListResultBean extends ApiResult {
    private List<SmartTaskListBean> smartTaskList;

    public List<SmartTaskListBean> getSmartTaskList() {
        return smartTaskList;
    }

    public void setSmartTaskList(List<SmartTaskListBean> smartTaskList) {
        this.smartTaskList = smartTaskList;
    }

    public static class SmartTaskListBean {
        /**
         * taskId : 3
         * taskName : 测试任务
         * executeMode : 0
         * status : 1
         * triggerDeviceList : []
         * executeDeviceList : [{"deviceId":870,"deviceName":"智能插座","proType":0,"deviceType":30,"subDeviceType":0,"deviceLogoURL":"http://120.76.155.219/group1/M00/00/4C/eEyb21rLOS-AQGzGAAArOiUXUy8346.png","deviceTypeLogoURL":"http://120.76.155.219:80/group1/M00/00/4D/eEyb21rxVeqAS3u0ABAAAGVaEV0996.jpg","hardwareId":"158d0001a687a6","shortId":"","brandId":0,"description":"","password":"","onlineStatus":0,"meterNo":null,"deviceFlag":0,"roomName":"","roomId":0,"deviceStatus":"","gatewayMac":""}]
         */

        private int taskId;
        private String taskName;
        private int executeMode;//0:手动
        private int status;//0 未启用 1 启用
        private List<TriggerDeviceListBean> triggerDeviceList;
        private List<ExecuteDeviceListBean> executeDeviceList;

        public int getTaskId() {
            return taskId;
        }

        public void setTaskId(int taskId) {
            this.taskId = taskId;
        }

        public String getTaskName() {
            return taskName;
        }

        public void setTaskName(String taskName) {
            this.taskName = taskName;
        }

        public int getExecuteMode() {
            return executeMode;
        }

        public void setExecuteMode(int executeMode) {
            this.executeMode = executeMode;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public List<TriggerDeviceListBean> getTriggerDeviceList() {
            return triggerDeviceList;
        }

        public void setTriggerDeviceList(List<TriggerDeviceListBean> triggerDeviceList) {
            this.triggerDeviceList = triggerDeviceList;
        }

        public List<ExecuteDeviceListBean> getExecuteDeviceList() {
            return executeDeviceList;
        }

        public void setExecuteDeviceList(List<ExecuteDeviceListBean> executeDeviceList) {
            this.executeDeviceList = executeDeviceList;
        }

        public static class ExecuteDeviceListBean {
            private int deviceId;
            private Integer executeObject;
            private String deviceName;
            private int deviceType;
            private String deviceTypeLogoURL;

            public int getDeviceId() {
                return deviceId;
            }

            public void setDeviceId(int deviceId) {
                this.deviceId = deviceId;
            }

            public Integer getExecuteObject() {
                return executeObject;
            }

            public void setExecuteObject(Integer executeObject) {
                this.executeObject = executeObject;
            }

            public String getDeviceName() {
                return deviceName;
            }

            public void setDeviceName(String deviceName) {
                this.deviceName = deviceName;
            }

            public int getDeviceType() {
                return deviceType;
            }

            public void setDeviceType(int deviceType) {
                this.deviceType = deviceType;
            }

            public String getDeviceTypeLogoURL() {
                return deviceTypeLogoURL;
            }

            public void setDeviceTypeLogoURL(String deviceTypeLogoURL) {
                this.deviceTypeLogoURL = deviceTypeLogoURL;
            }
        }

        public static class TriggerDeviceListBean {
            private int deviceId;
            private Integer conditionObject;
            private String deviceName;
            private String deviceTypeLogoURL;
            private int deviceType;

            public int getDeviceId() {
                return deviceId;
            }

            public void setDeviceId(int deviceId) {
                this.deviceId = deviceId;
            }

            public Integer getConditionObject() {
                return conditionObject;
            }

            public void setConditionObject(Integer conditionObject) {
                this.conditionObject = conditionObject;
            }

            public String getDeviceName() {
                return deviceName;
            }

            public void setDeviceName(String deviceName) {
                this.deviceName = deviceName;
            }

            public String getDeviceTypeLogoURL() {
                return deviceTypeLogoURL;
            }

            public void setDeviceTypeLogoURL(String deviceTypeLogoURL) {
                this.deviceTypeLogoURL = deviceTypeLogoURL;
            }

            public int getDeviceType() {
                return deviceType;
            }

            public void setDeviceType(int deviceType) {
                this.deviceType = deviceType;
            }
        }
    }

}
